FROM docker.1ms.run/node:18-alpine

# 安装 docsify-cli
RUN npm install -g docsify-cli@latest

# 创建工作目录并复制文档
WORKDIR /app
COPY ./ ./

# 暴露端口并设置入口点
EXPOSE 5006
ENTRYPOINT ["docsify", "serve","-p","5006"]